package com.mcxx.modules.miniSalvation.order.service.read;

import com.mcxx.modules.miniSalvation.order.dao.read.IncomeCalculateReadDao;
import com.mcxx.modules.miniSalvation.order.entity.IncomeCalculate;
import com.yinhai.ta404.core.service.BaseService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@TaTransactional(readOnly = true)
public class IncomeCalculateReadService {
    @Autowired
    private IncomeCalculateReadDao incomeCalculateReadDao;


    public String selectContentByOrderId(String orderId){
        return incomeCalculateReadDao.selectContentByOrderId(orderId);
    }

    public List<IncomeCalculate> listByOrderId(String orderId){
        return incomeCalculateReadDao.listByOrderId(orderId);
    }

    public int selectCountByOrderId(String orderId){
        return incomeCalculateReadDao.selectCountByOrderId(orderId);
    }
}
